-
Notifications
You must be signed in to change notification settings - Fork 51
Outliers query inclusive of missing fields #5903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5903 +/- ##
==========================================
- Coverage 83.78% 83.77% -0.01%
==========================================
Files 336 336
Lines 20960 20962 +2
==========================================
Hits 17561 17561
- Misses 3399 3401 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
scout/adapter/mongo/query.py
Outdated
|
|
||
| outlier_padjust_query["$or"].append(pval_struct) | ||
|
|
||
| outlier_padjust_query["$or"].append({pval_name: {"$exists": False}}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: Daniel Nilsson <[email protected]>
|
|
||
| outlier_padjust_query["$or"].append(pval_struct) | ||
| outlier_padjust_query["$or"].append( | ||
| {"$and": [pval_struct, {mutual_exclusion[pval_name]: {"$exists": False}}]} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enforce mutual exclusivity of the values: whenever a key/value is provided -> the other should't be existing, but if a key/value is not provided then the field might be missing - see line 878. Something like this @dnil? This is complicated 🤯
|




This PR adds a functionality or fixes a bug.
Testing on cg-vm1 server (Clinical Genomics Stockholm)
Prepare for testing
scout-stageand the server iscg-vm1.ssh <USER.NAME>@cg-vm1.scilifelab.sesudo -iu hiseq.clinicalssh localhostpodman pssystemctl --user stop scout@<name_of_currently_deployed_branch>systemctl --user start scout@<this_branch>systemctl --user status scout.targetscout-stage) to be used for testing by other users.Testing on hasta server (Clinical Genomics Stockholm)
Prepare for testing
ssh <USER.NAME>@hasta.scilifelab.seus; paxa -u <user> -s hasta -r scout-stage. You can also use the WSGI Pax app available at https://pax.scilifelab.se/.conda activate S_scout; pip freeze | grep scout-browserbash /home/proj/production/servers/resources/hasta.scilifelab.se/update-tool-stage.sh -e S_scout -t scout -b <this_branch>us; scout --versionpaxaprocedure, which will release the allocated resource (scout-stage) to be used for testing by other users.How to test:
Expected outcome:
The functionality should be working
Take a screenshot and attach or copy/paste the output.
Review: